
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
	{wc:$key}
</title><meta content="app-id=518966501" name="apple-itunes-app" /><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0" /><meta content="yes" name="apple-mobile-web-app-capable" /><meta content="black" name="apple-mobile-web-app-status-bar-style" /><meta content="telephone=no" name="format-detection" />
<link href="{G_TEMPLATES_CSS}/mobile/comm.css" rel="stylesheet" type="text/css" />
<link href="{G_TEMPLATES_CSS}/mobile/goods.css" rel="stylesheet" type="text/css" />

<link href="{G_TEMPLATES_CSS}/mobile2/comm.css" rel="stylesheet" type="text/css" />
<link href="{G_TEMPLATES_CSS}/mobile2/goods.css" rel="stylesheet" type="text/css" />
<link href="{G_TEMPLATES_CSS}/mobile2/lottery.css" rel="stylesheet" type="text/css" />



<script src="{G_TEMPLATES_JS}/mobile/jquery190.js" language="javascript" type="text/javascript"></script>
{wc:if $shopitem=='itemfun'}
	<script id="pageJS" data="{G_TEMPLATES_JS}/mobile/goodsInfo.js" language="javascript" type="text/javascript"></script>
{wc:else}
<script id="pageJS" data="{G_TEMPLATES_JS}/mobile/LotteryDetail.js" language="javascript" type="text/javascript"></script>
{wc:if:end}
</head>
<body>
<div class="h5-1yyg-v1" id="loadingPicBlock">
    
<!-- 栏目页面顶部 -->


<!-- 内页顶部 -->

{wc:templates "mobile/index","top"}
<!-- 内页顶部 -->

    <input name="hidGoodsID" type="hidden" id="hidGoodsID" value="{wc:$itemlist[0]['q_uid']}"/>   <!--上期获奖者id-->
    <input name="hidCodeID" type="hidden" id="hidCodeID" value="{wc:$item['id']}"/>     <!--本期商品id-->
    <section class="goodsCon pCon">
	
		
	
	
	    <!-- 导航 -->
        <div id="divPeriod" class="pNav">
            <div class="loading"><b></b>正在加载</div>
    	    <ul class="slides">
    	       {wc:$loopqishu}
            </ul>
        </div>
		
		{wc:php:start}
            $sysj=$item['xsjx_time']-time();
            $next = $item['qishu']+1;
        {wc:php:end}

        <!-- 产品图 -->
        <div class="pPic pPicBor">
            <div class="pPic2">
    	        <div id="sliderBox" class="pImg">
                    <div class="loading"><b></b>正在加载</div>
                    <ul class="slides">
					{wc:loop $item['picarr'] $imgtu}  
					<li><img src="{G_UPLOAD_PATH}/{wc:$imgtu}" /></li>
					{wc:loop:end} 
                    </ul>
                </div>
            </div>
			{wc:if $item['q_end_time']=='' && $item['xsjx_time']!=0}
            <span id="spAutoFlag" class="z-limit-tips">商品揭晓</span>
			 {wc:if:end}
        </div>
        <input type="hidden" name="yj_id" id="yj_id" value="{wc:$item['id']}">
	
		  <!-- 揭晓信息 -->
        {wc:if $item['q_end_time']!=''}
        <div class="pProcess pProcess2" style="display:none;">
    	    <div class="pResults">
        	    <div class="pResultsL" onclick="location.href='{WEB_PATH}/mobile/mobile/userindex/{wc:$item[q_uid]}'">
            	    <a>
            	        <img src="{G_UPLOAD_PATH}/{wc:fun:get_user_key($item['q_uid'],'img')}">
            	        <span>{wc:fun:get_user_name($item['q_uid'])}</span>
            	    </a>
                    <s></s>
                </div>
        	    <div class="pResultsR">
                    <div class="g-snav">
                        <div class="g-snav-lst">总共{wc:fun:_cfg('web_name_two')}<br><dd><b class="orange">{wc:$gorecode['gonumber']}</b><br>人次</dd></div>
                        <div class="g-snav-lst">揭晓时间<br><dd class="gray9"><span>{wc:fun:microt($item['q_end_time'])}</span></dd></div>
                        <div class="g-snav-lst">{wc:fun:_cfg('web_name_two')}时间<br><dd class="gray9"><span>{wc:fun:microt($gorecode['time'])}</span></dd></div>
                    </div>
                </div>
        	    <p><a href="{WEB_PATH}/mobile/mobile/calResult/{wc:$item['id']}" class="fr">查看计算结果</a>幸运{wc:fun:_cfg('web_name_two')}码：<b class="orange">{wc:$item['q_user_code']}</b></p>
            </div>
        </div>
        {wc:if:end}
	
        <!-- 条码信息 -->


        <!-- 商品信息 -->
        <div class="pDetails {wc:if $item['q_end_time']!=''}pDetails-end{wc:if:end}">
            
                <b><!-- wk  加标识 -->
                {wc:if $item['limit_buys'] > 0}
                <style>
                span.purchase-icon {
                    display: inline-block;
                    background-color: #24cba8;
                    color: #fff!important;
                    font-size: 14px;
                    padding: 0 4px;
                    line-height: 20px;
                }
                .wkspan {
                    color: #f60;
                    font-size: 12px;
                    line-height: 16px;
                    float: right;
                    padding-right: 50px;
                }
                </style>
                <span class="purchase-icon">限购</span>
                {wc:if:end}
                <input type="hidden" value="limit_buy" id="{wc:$item['limit_buy']}">
                <input type="hidden" value="limit_buys" id="{wc:$item['limit_buys']}">
                <!-- wk  加标识 -->
                
                (第{wc:$item['qishu']}期){wc:$item['title']} <span></span></b>
                <p class="price">价值：<em class="arial gray">￥{wc:$item['money']}</em>
                {wc:if $item['limit_buys'] > 0}
                <span class="wkspan">限购{wc:$item['limit_buys']}人次</span>
                {wc:if:end}
                </p>
                <div class="Progress-bar">
                    <p class="u-progress" title="已完成{wc:fun:percent($item['canyurenshu'],$item['zongrenshu'])}">
                        <span class="pgbar" style="width:{wc:$item['canyurenshu']/$item['zongrenshu']*100}%;">
                            <span class="pging"></span>
                        </span>
                    </p>
                    <ul class="Pro-bar-li">
                        <li class="P-bar01"><em>{wc:$item['canyurenshu']}</em>已参与</li>
                        <li class="P-bar02"><em>{wc:$item['zongrenshu']}</em>总需人次</li>
                        <li class="P-bar03"><em>{wc:$item['zongrenshu']-$item['canyurenshu']}</em>剩余</li>
                    </ul>
                </div>  
        </div>
		
		  <!--获得者信息-->
		   {wc:if $item['q_end_time']!=''}
        <div class="bgColor-white clearfix">
            <div class="g-winn-con clearfix">
                <div class="winn-info clearfix">
                    <p class="fl">
                        <a href="{WEB_PATH}/mobile/mobile/userindex/{wc:$item[q_uid]}"><img src="{G_UPLOAD_PATH}/{wc:fun:get_user_key($item['q_uid'],'img')}"></a>
                    </p>
                    <dl class="gray9">
                        <dt>
                            <a href="{WEB_PATH}/mobile/mobile/userindex/{wc:$item[q_uid]}" class="blue">
                                {wc:if $q_user['username'] != ''}{wc:$q_user['username']}{wc:else}{wc:$q_user['mobile']}{wc:if:end}
                            </a></dt>
                        <dd>
                            本云参与： <i class="orange">
                               <i class="orange">{wc:$gorecode['gonumber']}</i>人次&gt;&gt;</i>
                        </dd>
                        <dd class="ann-time">
                            揭晓时间：
                       {wc:fun:microt($item['q_end_time'])}
                        </dd>
                    </dl>
                    <div class="rNowTitle">获得者</div>
                    <!--分享-->
                    <!--<div class="z-share-right">
                        <a id="btnShare" class="colorbbb" href="javascript:;">
                            <i class="z-set"></i>
                            分享</a>
                    </div>
                        -->
                </div>
                <div class="jsxq-ygm gray9 clearfix"><a href="{WEB_PATH}/mobile/mobile/calResult/{wc:$item['id']}" class="gray9 fr">计算详情&gt;&gt;</a><cite>幸运云购码：<i class="orange">{wc:$item['q_user_code']}</i></cite></div>
            </div>
        </div>
		   {wc:if:end}

        
		
		
        <!-- 参与记录，商品详细，晒单导航 -->
        <div class="joinAndGet">
    	    <dl>
    	        <a href="{WEB_PATH}/mobile/mobile/buyrecords/{wc:$item['id']}"><b class="fr z-arrow"></b>所有{wc:fun:_cfg('web_name_two')}记录</a>
				<a href="{WEB_PATH}/mobile/mobile/goodsdesc/{wc:$item['id']}"><b class="fr z-arrow"></b>图文详情<em>（建议WIFI下使用）</em> </a>
				 
				<a href="{WEB_PATH}/mobile/mobile/goodspost/{wc:$item['sid']}"><b class="fr z-arrow"></b>已有<span class="orange arial">{wc:fun:count($shaidan)}</span>个幸运者晒单<strong class="orange arial">{wc:$sum}</strong>条评论</a>
				 
            </dl>
            <!-- 上期获得者 -->
			{wc:if $item['q_end_time'] =='' and $item['qishu']>1}
			<ul id="prevPeriod" class="m-round" codeid="{wc:$gorecode['shopid']}" uweb="{wc:$gorecode['uid']}" style="display:none;">
        	    <li class="fl"><s></s><img src="{G_TEMPLATES_IMAGE}/mobile/loading.gif" src2="{G_UPLOAD_PATH}/{wc:fun:get_user_key($itemlist[0]['q_uid'],'img')}"/></li>
                <li class="fr"><b class="z-arrow"></b></li>
                <li class="getInfo">
            	    <dd>
					<em class="blue">{wc:fun:get_user_name($itemlist[0]['q_uid'])}</em>({wc:fun:get_ip($gorecode['id'],'ipcity')}) 
					</dd>
                    <dd>总共{wc:fun:_cfg('web_name_two')}：<em class="orange arial">{wc:$gorecode['gonumber']}</em>人次</dd>
                    <dd>幸运{wc:fun:_cfg('web_name_two')}码：<em class="orange arial">{wc:$gorecode['huode']}</em></dd>
                    <dd>揭晓时间：{wc:fun:microt($itemlist[0]['q_end_time'])}</dd>								   
                    <dd>{wc:fun:_cfg('web_name_two')}时间：{wc:fun:microt($gorecode['time'])}</dd>
                </li>
            </ul>
			{wc:if:end}
            
        </div>
		

    </section>
    
 <div class="pro_foot">	
		{wc:if $item['q_end_time'] !=''}
                <div class="pClosed">本期已揭晓</div>
				{wc:if $itemxq==1}
				<div class="pOngoing" codeid="{wc:$itemzx['id']}">第<em class="arial">{wc:$itemzx['qishu']}</em>期 正在进行中……<span class="fr">查看详情</span></div>
				{wc:if:end}
           	{wc:elseif $item['zongrenshu']==$item['canyurenshu']}
			  {wc:if $item['xsjx_time']!=0}
               <div id="divAutoRTime" class="pSurplus" time="{wc:$sysj}" timeAlt="{wc:fun:date('Y-m-d-H-i',$item['xsjx_time'])}"><p><span>商品揭晓</span>剩余时间：<em>00</em>时<em>00</em>分<em>00</em>秒</p></div>
			   {wc:if:end}
               <div class="pClosed">第{wc:$next}期正在进行中...</div>
		    {wc:else}
               {wc:if $item['xsjx_time']!=0}			
			  <div id="divAutoRTime" class="pSurplus" time="{wc:$sysj}" timeAlt="{wc:fun:date('Y-m-d-H',$item['xsjx_time'])}"><p><span>商品揭晓</span>剩余时间：<em>00</em>时<em>00</em>分<em>00</em>秒</p></div>
			  {wc:if:end}
              <div id="btnBuyBox" class="pBtn" codeid="{wc:$item['id']}">
				<a href="javascript:;" class="fl buyBtn">立即{wc:fun:_cfg('web_name_two')}</a>
				<a href="javascript:;" class="fr addBtn">加入购物车</a>
			  </div>
			{wc:if:end}			
				
</div>
			
			
<script language="javascript" type="text/javascript">
  var Path = new Object();
  Path.Skin="{G_TEMPLATES_STYLE}";  
  Path.Webpath = "{WEB_PATH}";
  
var Base = {
    head: document.getElementsByTagName("head")[0] || document.documentElement,
    Myload: function(B, A) {
        this.done = false;
        B.onload = B.onreadystatechange = function() {
            if (!this.done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
                this.done = true;
                A();
                B.onload = B.onreadystatechange = null;
                if (this.head && B.parentNode) {
                    this.head.removeChild(B)
                }
            }
        }
    },
    getScript: function(A, C) {
        var B = function() {};
        if (C != undefined) {
            B = C
        }
        var D = document.createElement("script");
        D.setAttribute("language", "javascript");
        D.setAttribute("type", "text/javascript");
        D.setAttribute("src", A);
        this.head.appendChild(D);
        this.Myload(D, B)
    },
    getStyle: function(A, B) {
        var B = function() {};
        if (callBack != undefined) {
            B = callBack
        }
        var C = document.createElement("link");
        C.setAttribute("type", "text/css");
        C.setAttribute("rel", "stylesheet");
        C.setAttribute("href", A);
        this.head.appendChild(C);
        this.Myload(C, B)
    }
}
function GetVerNum() {
    var D = new Date();
    return D.getFullYear().toString().substring(2, 4) + '.' + (D.getMonth() + 1) + '.' + D.getDate() + '.' + D.getHours() + '.' + (D.getMinutes() < 10 ? '0': D.getMinutes().toString().substring(0, 1))
}
Base.getScript('{G_TEMPLATES_JS}/mobile/Bottom.js');


</script>
<script>
$(function(){
  $(".blue").click(function(){
   
     url="{WEB_PATH}/uname/{wc:fun:idjia($itemlist[0]['q_uid'])}";
	 window.location.href=url;
  
  });
  
  $(".orange.arial").click(function(){
     url="{WEB_PATH}/mobile/mobile/dataserver/{wc:$itemlist[0]['id']}";
	 window.location.href=url;
  
  });

})

</script>
</div>
</body>
</html>
